#include "EbnActionMsgSender.h"
#include "EbnActionEvent.h"

CEbnActionMsgSender::CEbnActionMsgSender(CEbnAction * pAction, QObject *parent) :
    QObject(parent)
{
    mpAction = pAction;
}

void CEbnActionMsgSender::onActionSelected()
{
    if (mpAction)
    {
        string mActionName = mpAction->getName();

        emit sendActionSelectedSignal(mActionName);
    }
}
